package com.heima.model.behavior.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@ApiModel(description = "点赞行为请求DTO")
@NotEmpty(message = "请求体不能为空")
public class LikesBehaviorDto implements Serializable {

    @ApiModelProperty(value = "文章id", example = "0")
    @NotEmpty(message = "文章ID为空")
    private Long articleId;

    @ApiModelProperty(value = "操作，0 点赞，1 取消点赞", example = "0")
    @NotEmpty(message = "操作为空")
    private Short operation;

    @ApiModelProperty(value = "类型，0 文章，1 动态，2 评论", example = "0")
    @NotEmpty(message = "类型为空")
    private Short type;
}
